Functions Summary | |
---|---|
string | cot_build_extrafields(string name, array extrafield, string data) Returns Extra fields edit fields |
string | cot_build_extrafields_data(string name, array extrafield, string value, string parser) Returns Extra fields data |
private string | cot_default_html_construction(string type) Extra fields - Return default base html-construction for various types of fields (without value= and name=) |
bool | cot_extrafield_add(string location, string name, string type, string html, string variants, string default, bool required, string parse, string description, string params, string enabled, bool noalter, string customtype) Add extra field for pages |
void | Moves and unset files in the $uploadfiles array |
bool | cot_extrafield_remove(string location, string name) Delete extra field |
string | cot_extrafield_title(array extrafield, string titlePrefix) Extrafield title |
void | cot_extrafield_unlinkfiles(string fielddata, array extrafields, mixed extrafield) Delete files in extrafield array |
bool | cot_extrafield_update(string location, string oldname, string name, string html, string variants, string default, bool required, string parse, string description, string params, string enabled, string customtype, mixed type) Update extra field for pages |
void | cot_extrafields_register_table(string table_name) Registers a table in extrafields registry |
string | cot_import_extrafields(string inputname, string source, string oldvalue, string titlePrefix, mixed extrafield) Imports Extra fields data |
array | cot_import_filesarray(array file_post) Fixes the indexing of multiple file uploads from the format: $_FILES['field']['key']['index'] To the more standard and appropriate: $array['index']['key'] |
void | cot_load_extrafields(bool forcibly) Loads extrafields data into global |
public string cot_build_extrafields(string name, array extrafield, string data)
public string cot_build_extrafields_data(string name, array extrafield, string value, string parser)
private string cot_default_html_construction(string type)
public bool cot_extrafield_add(string location, string name, string type, string html, string variants, string default, bool required, string parse, string description, string params, string enabled, bool noalter, string customtype)
public void cot_extrafield_movefiles()
public bool cot_extrafield_remove(string location, string name)
public string cot_extrafield_title(array extrafield, string titlePrefix)
public void cot_extrafield_unlinkfiles(string fielddata, array extrafields, mixed extrafield)
public bool cot_extrafield_update(string location, string oldname, string name, string html, string variants, string default, bool required, string parse, string description, string params, string enabled, string customtype, mixed type)
public void cot_extrafields_register_table(string table_name)
public string cot_import_extrafields(string inputname, string source, string oldvalue, string titlePrefix, mixed extrafield)
public array cot_import_filesarray(array file_post)
public void cot_load_extrafields(bool forcibly)